import request from '../utils/request';

//动态配置查询 获取车辆列表
export function getCarLatestConfig (data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/strategyConfig/getCarLatestConfig',
        method: 'post',
        data
    });
};


//新建配置接口 
export function createNewStrategy (data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/strategyConfig/create',
        method: 'post',
        data
    });
};

//新建配置接口-noTrigger 
export function createNewStrategyNoTrigger (data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/cdnFile/createConfig',
        method: 'post',
        data
    });
};
// 根据配置id 查看详情
export function getStrategyConfigDetailApi (data) {
    return request({
        apiType:'CAR',
        baseURL: 'carmanage',
        url: '/web/strategyConfig/getStrategyConfigDetail',
        method: 'post',
        data
    });
};
